<%--
  Created by IntelliJ IDEA.
  User: 15154
  Date: 2020/10/10
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body>
<img style="width: 200px;height: 50px;" src="../../images/img.png">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>发布新任务</legend>
</fieldset>

<form action="/addTask" method="post">
<fieldset class="layui-elem-field">
    <legend>填写任务信息</legend>
    <div class="layui-field-box">
        <div class="layui-form-item">
            <label class="layui-form-label">任务标题</label>
            <input type="hidden" name="stuId" value="${sessionScope.stuId}"/>

            <div class="layui-input-block">
                <input type="text" name="taskName" autocomplete="off" placeholder="请输入任务标题" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">积分</label>
            <div class="layui-input-block">
                <input type="text" name="reward" autocomplete="off" placeholder="请输入积分额度" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">详细描述</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入详细描述信息" name="taskcontext" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="padding-left: 110px;">
            <button class="layui-btn" lay-submit="" lay-filter="demo2">提交</button>
        </div>
    </div>
</fieldset>
</form>




<script src="../../layui/layui.js"></script>
<script type="text/javascript">
    layui.use([ 'jquery', 'layer', 'form', 'table','laydate' ], function() {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laydate=layui.laydate;

        //绑定时间选择器
        laydate.render({
            elem:'#startTime'
        });
        laydate.render({
            elem:'#endTime'
        });


    });
</script>
</body>
</html>
